﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace CMPPTest
{
    [TestClass]
    public class TestCMPP
    {
        [TestMethod]
        public void TestCMPP_CONNECT()
        {
            CMPPCore.SMSClient cmppclient = new CMPPCore.SMSClient(
                "901234",
                "1234",
                "127.0.0.1",
                7890,
                new CMPPProtocol.CMPP2Protocol());

            //bool islogin= cmppclient.Connect();
            cmppclient.CommandEvent += new EventHandler<CMPPCore.CommandEventArg>(cmppclient_CommandEvent);
            cmppclient.Start();
            cmppclient.Stop();

            //Assert.AreEqual(islogin, true, "登入失败");
        }

        void cmppclient_CommandEvent(object sender, CMPPCore.CommandEventArg e)
        {
            
        }
    }
}
